import java.util.*;

/**
 * Created by IntelliJ IDEA.
 *
 * @Author : Ding
 * @create 2022/9/14 14:35
 */
public class Main6 {
    public static void main(String[] args) {
        int[] arr = new int[]{10,11,12,13,14,10,11,12};

        HashMap<Integer,Integer> map = new HashMap<>();
        for (int i : arr) {
            if (map.containsKey(i)){
                map.put(i,map.get(i)+1);
            }else{
                map.put(i,1);
            }
        }
        List<Integer> ret = new ArrayList<>();
        map.forEach((k,v)->{
            if (v == 1){
                ret.add(k);
            }
        });

        Collections.sort(ret);

        for (int integer : ret) {
            System.out.print(integer);
        }
    }

}
